"use strict";


var App = require('./App.js');

function RpcClient(path) {
	if (!this instanceof RpcClient) {
		return new RpcClient(path);
	}

	var server = require(path);
	__wrapServer(this, server);
}


module.exports = RpcClient;


function __wrapServer(rpcClient, server) {
	if (typeof server === 'function') {
		server = new server();
	}

	for (var key in server) {
		var value = server[key];
		if (typeof value === 'function') {
			rpcClient[key] = function() {



				server[key];
			}
		}
	}
}